package net.maku.newbase;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;
import net.maku.framework.mybatis.entity.BaseEntity;

/**
 * @author JYL
 */
@Data
public abstract class NewBaseEntity extends BaseEntity {

    /**
     * id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Id
    private Long id;

}
